<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; UTF-8" />
	<title>Logar</title>
</h:head>
<body bgcolor="#CCCCCC">
	<h:form>
		<center>
			
			<br /> <img src="images/esfinge.jpg" height="150" width="120"
				style="color: #CCCCCC" />
			<h1>
				<b><h:outputText value="ESFINGE" for="esfinge" /></b>
			</h1>
			<p:dialog header="Login" closable="false" position="center"
				minWidth="300" width="300" draggable="false" resizable="false"
				visible="true">
				
					<p:messages id="mensagens" showDetail="true" showSummary="false" />
					<h:panelGrid columns="2">
						<h:outputLabel value="Usuário" />
						<h:inputText id="j_username" value="#{loginMB.nome}" size="18" autocomplete="true"/>
						<h:outputLabel value="Senha" />
						<h:inputSecret id="j_password" value="#{loginMB.senha}" size="18" />
					</h:panelGrid>

					<div align="right">
						<h:commandButton value="Entrar" action="#{loginMB.logar}" />
					</div>
					<h:commandLink value="Esqueceu a senha?" action="privado/editor" />
				
			</p:dialog>

		</center>
	</h:form>
</body>
</html>